﻿using System;
using fastCSharp;

namespace diantou.web
{
    /// <summary>
    /// 邀请我回答的问题
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class receiveInvite : invert<receiveInvite>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        private bool loadView(int page)
        {
            if (currentUserId != 0)
            {
                array.page arrayPage = new array.page(pageInfo.Count = currentUser.InviteAnswerCount, pageInfo.Size = fastCSharp.config.pub.Default.PageSize, pageInfo.Page = page);
                invites = diantou.dataAccess.tcpCall.questionInvite.getRecieve(currentUser.Id, arrayPage.SkipCount, arrayPage.CurrentPageSize);
                return true;
            }
            return false;
        }
    }
}
